<template>
    <div class="main">
        <div class="menu">
            <div class="menu-item">
                <el-icon :size="20">
                    <location />
                </el-icon>
            </div>
            <div class="menu-item">
                <el-icon :size="20">
                    <Menu />
                </el-icon>
            </div>
            <div class="menu-item">
                <el-icon :size="20">
                    <document />
                </el-icon>
            </div>
            <div class="menu-item">
                <el-icon :size="20">
                    <setting />
                </el-icon>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    components: {
    },
    data() {
        return {
        }
    },
    mounted() {

    },
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath)
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath)
        }
    }
}

</script>

<style lang="less" scoped>
.main {
    width: 273px;
    height: 100%;
}

.menu {
    width: 63px;
    height: 100%;

    :hover {
        background-color: #d3d4d4;
    }
}

.menu-item {
    width: 100%;
    height: 63px;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    cursor: pointer;
}

/* 调整图标大小和间距 */
.el-icon {
    width: 24px;
    height: 24px;
}
</style>